package net.dfrz.oa.service;

import java.util.Date;

import org.springframework.data.domain.Page;

import net.dfrz.oa.pojo.WorkLog;
import net.dfrz.oa.utils.PageBean;

public interface WorkLogService {

	/**
	 * 查询当前用户的个人日志
	 * @param pageList
	 * @param uid
	 * @return
	 */
	Page<WorkLog> queryPageList(PageBean<WorkLog> pageList, Integer uid);

	/**
	 * 查询当前用户某个日期的个人日志
	 * @param pageList
	 * @param query
	 * @param uid
	 * @return
	 */
	Page<WorkLog> queryPageList(PageBean<WorkLog> pageList, Date query,
			Integer uid);

	/**
	 * 添加日志
	 * @param worklog
	 */
	void addWorkLog(WorkLog worklog);

	/**
	 * 更新日志
	 * @param worklogId
	 * @param title
	 * @param log
	 * @param date
	 */
	void updateWorkLog(Integer worklogId, String title, String log, Date date);

}
